package com.pudding.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.pudding.converter.GenderConverter;
import lombok.Data;

import java.time.LocalDate;

/**
 * @Author Pudding
 * @Date 2025/3/20 11:20
 */
@Data
public class MyUser {
    @ExcelProperty(value = "姓名", index = 0)
    private String name;

    @ExcelProperty(value = "性别", index = 1, converter = GenderConverter.class)
    private Integer gender;

    @ExcelProperty(value = "出生日期", index = 2)
    @DateTimeFormat("yyyy-MM-dd")  //我想接收年月日格式
    private LocalDate birthday;
}
